package com.wang.springframework.test.bean;

import com.wang.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wangjianhua
 * @Description
 * @date 2021/9/4/004 11:21
 **/
@Component
public class UserDao {

    private static final Map<String,String> hashMap = new HashMap<>(8);

    static {
        hashMap.put("10001","马化腾,深圳,腾讯");
        hashMap.put("10002","王兴,北京,顺丰");
        hashMap.put("10003","刘强东,北京,京东");
    }

    public String queryUserName(String uId){
        return hashMap.get(uId);
    }
}
